﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
using Autofac;

namespace MaximServices.Common
{
    public static class IdFactory
    {
        public static string NextId
        {
            get
            {
                return ServiceLocator.Instance.Resolve<SnowflakeIdWorker>().NextId().ToString();
            }
        }
    }
}
